﻿@model Presentation.Web.ViewModels.LogOnModel
           
<script src="@Url.CDNContent("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.CDNContent("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div id="login-account">
    @using (Html.BeginForm())
    {
        <h3>
            using a NerdDinner account</h3>        
        <div>
            <p>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </p>
            <p>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </p>
            <p>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </p>
            <p>
                <input class="dinnerbnt" type="submit" value="Log On" />
            </p>
            <p>
                Please enter your username and password. @Html.ActionLink("Register", "Register")
                if you don't have an account.
            </p>
        </div>
    }
</div>